package com.xxl.sso.core.conf;

import com.alibaba.algo.cooperation.common.ResultStatus;

/**
 * @Description: 全局状态码
 * @author: malin
 * @date: 2020-9-14 17:20:36
 */
public class GlobalResultStatus {
	public static final ResultStatus SUCCESS = new ResultStatus(0, "成功");
	public static final ResultStatus PARAM_ERROR = new ResultStatus(10000, "参数错误");
	public static final ResultStatus SOURCE_ERROR = new ResultStatus(60000, "source参数错误");
	public static final ResultStatus AUTH_SERVICE_NOT_EXIST = new ResultStatus(60001, "授权服务不存在");
	public static final ResultStatus AUTH_TOKEN_FAIL = new ResultStatus(60002, "授权信息获取失败,请核查账号信息");
	public static final ResultStatus AUTH_MISSING = new ResultStatus(60003, "缺少授权信息");
	public static final ResultStatus ACCESS_TOKEN_ERROR = new ResultStatus(60004, "非法授权");
	public static final ResultStatus CLIENT_ID_ERROR = new ResultStatus(60005, "client_id非法授权");
	public static final ResultStatus ACCOUNT_PASWWORD_ERROR = new ResultStatus(60006, "登陆失败，请检查用户名或密码是否正确");
	public static final ResultStatus NO_LOGIN = new ResultStatus(60007, "用户尚未登陆");
	public static final ResultStatus ILLEGAL_ACCESS = new ResultStatus(60008, "该资源未授权,请联系管理员分配权限！");
	public static final ResultStatus REQUEST_FAIL = new ResultStatus(60009, "请求失败，请联系管理员");
}
